/******************************************************************************
 * FileName:    gwin_spec_notify.h
 * Desc:        上报接口
 *
 *
 * Author:      Lin
 * Notes:
 *
 ******************************************************************************/

#ifndef __GWIN_SPEC_NOFITY_H__
#define __GWIN_SPEC_NOFITY_H__


/*-------------------------- Includes ---------------------------------------*/

/*-------------------------- Macro Definitions ------------------------------*/

/*-------------------------- Type Declarations ------------------------------*/
/**
 * @brief 事件类型
 */
typedef enum
{
    SUCCESS_EVENT_NONE,
    SUCCESS_EVENT_CALIBRATION,          // 电机校准
    SUCCESS_EVENT_REMOTE_PAIR_START,    // 对码开始
    SUCCESS_EVENT_REMOTE_PAIR_ADD,      // 对码成功
    SUCCESS_EVENT_REMOTE_PAIR_CLEAR,    // 清码
}success_event_t;


/*-------------------------- Global Variables -------------------------------*/

/*-------------------------- Local Variables --------------------------------*/

/*-------------------------- Functions Declarations -------------------------*/

/*-------------------------- Functions Definitions --------------------------*/
uint8_t spec_notify_current_position(uint32_t value);
uint8_t spec_notify_target_position(uint32_t value);
uint8_t spec_notify_direction(uint32_t value);
uint8_t spec_notify_speed_level(uint32_t value);
uint8_t spec_notify_stroke_min(uint32_t value);
uint8_t spec_notify_stroke_max(uint32_t value);
uint8_t spec_notify_node_mode(uint32_t value);
uint8_t spec_notify_product_cfg(uint32_t value);

void spec_notify_success_do_event(uint32_t value);
void spec_notify_log_event(uint32_t value);


/*-------------------------- END OF FILE ------------------------------------*/


#endif      // __GWIN_SPEC_NOFITY_H__

